@extends('base.base')
@section('base')
    <!-- 内容区域 -->
    <div class="main-panel">
        <div class="content-wrapper">
            <div class="row">
                <div class="col-12 grid-margin stretch-card">
                    <div class="card">
                        <div class="card-body">
                            <h4 class="card-title">备注</h4>
                            <div class="form-group">
                                <label >
                                    <textarea name="remark" id="content" cols="30" rows="10">{{$data['remark']}}</textarea>
                                </label>
                                <button type="button" onclick="commit({{$data['id']}})" class="btn btn-sm btn-gradient-primary btn-icon-text">
                                    <i class="mdi mdi-file-check btn-icon-prepend"></i>
                                    提交
                                </button>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script>
        function commit(id){

            var content = $("#content").val();
            var data = {id: id, content:content};
            myRequest("/admin/order/mark","post",data,function(res){
                layer.msg(res.msg)
                setTimeout(function(){
                    parent.location.reload();
                },150)
            });
        }
    </script>
@endsection
